package com.css.fxfzypg.modules.model.repository;

import com.css.fxfzypg.modules.model.entity.IntensityAttenuation;
import com.css.fxfzypg.modules.model.vo.IntensityAttenuationVO;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author DBJ
 */
public interface IntensityAttenuationRepository {
    Map<String, Object> findPage(IntensityAttenuationVO vo, int curPage, int pageSize);
    Map<String, Object> findPageForXczh(IntensityAttenuationVO vo, int curPage, int pageSize);

    IntensityAttenuation getModelById(String id);
    IntensityAttenuation getDefaultModel();
    IntensityAttenuation getDefaultModelByModelName(String modelName);
    List<IntensityAttenuation> getByDivision(String province, String city, int isNa);

    void save(IntensityAttenuation intensityAttenuation) throws ParseException;

    void update(IntensityAttenuation intensityAttenuation);

    void delete(String userId, Date date, String id);

    Integer countByProvince(String province);

    Integer countByYearPrefixLike(String taskYear, String currProvinceId);
}
